﻿using dz.u9.jky.schema.Common;
using dz.u9.jky.schema.InvDoc;
using dz.u9.jky.schema.Ship;
using dz.util.core;
using Microsoft.AspNetCore.Mvc;

namespace dz.u9.webapi.Controllers
{
    /// <summary>
    /// 出货
    /// </summary>
    
    [ApiController]
    [Route("api/[controller]/[action]")]
    public class ShipController : U9BaseController
    {

        [HttpPost]
        public async Task<U9CResult> AddAndAudit(DzShip dto)
        {
            return await U9Invoke(JsonUtil.Serialize(dto), new ApiParm() { Url = "DzShipJky/AddAndAudit", Desc = "出货单新增审核" });
        }

        [HttpPost]
        public async Task<U9CResult> Add(DzShip dto)
        {
            return await U9Invoke(JsonUtil.Serialize(dto), new ApiParm() { Url = "DzShipJky/Add", Desc = "出货单新增" });
        }
    }
}
